{include file="$usertemplate/header.tpl.html" title=header} 
    	<div class="content">
   			{include file="$usertemplate/left.tpl.html" title=left} 
        	<div class="cont_right">
           		<div class="main_content">
                	<div class="breadcrumb">
                          <span class="left"></span>
                          <ul>
                            <li>{if $patParentItems} {foreach from=$patParentItems key=i item=patParentItem}<a href="{$patParentItem->getUrl('vn')}" title="{$patParentItem->getName('vn')|strip_tags}">{$patParentItem->getName('vn')|strip_tags} </a>{/foreach}{/if}</li>
                          </ul>
                          <span class="right"></span>
                        </div>
                    <div class="details">
                        {literal}
						<script type="text/javascript" language="javascript">
                            $(".themvaogio").click(function(){
                                $(".shopping").submit();
                            });		

                    
                        </script>
                        {/literal}
                        {if $productItem}
                        <form class="shopping" action="" method="post">
                        
                        
                        <div class="chitietsp">
                            
                            <h1>{$productItem->getName()}</h1>
                            <p style="text-align:center;"><img src="{$ROOTPATH}/gallery/avatar_upload/products/avatar/{$productItem->getAvatar()}"/>
                            <br/><a  href="{$ROOTPATH}/gallery/avatar_upload/products/storage/{$productItem->getAvatar()}" class="highslide"  onclick="return hs.expand(this)" title="{$productItem->getName('vn')}" ><img src="{$ROOTPATH}/templates/{$usertemplate}/images/icon_zoom.jpg" title="xem hinh lon" /></a>
                            </p>
                                    
                            <ul>
                             <span style="clear:both !important; text-align:left; font-weight:bold;">Tính năng nổi bật</span>
                       			 <div class="thongtinsp">
                            {$productItem->getNSX('vn')}
                       </div>
                                <li class="giasp1">Giá: {if $productItem->getSPrice()}{$productItem->getSPrice()|number_format:0:",":"."} VNĐ{else}{if $productItem->getPrice() neq 0}{$productItem->getPrice()|number_format:0:",":"."} VNĐ {else}Đang cập nhật{/if}{/if} </li>

                                <li class="chitiet">
                                  <input type="hidden" name="op" value="shopping"  />
                                  <input type="hidden" name="slug" value="{$slug}"  />
                                  <input type="hidden" name="plus" value="addToCart" />
                                  <input type="hidden" name="lang" value="vn" />   
                                   <input type="submit" name="btn_shopping" value="Mua hàng"  class="themvaogio"/>          
                                   
                                    <a href="{$ROOTPATH}/index.php?op=shopping&lang={$lang}"><span class="xemgio">Xem giỏ</span></a>
                                    
                                </li>
                            </ul>
                        </div><!--chitietsp-->
                        </form>
                        <div class="clearfix"></div>
                        <div class="motasanpham">
                            <h3>Mô tả sản phẩm:</h3><br />
                            <div class="clearfix"></div>
                            {$productItem->getDetails('vn')}
                        </div>
                        
                        {/if}
                        
                    </div>
                    
                </div>
                <div class="sanphamkhac">
    	
        {if $randomproducItems}
        <h2>Sản phẩm khác:</h2>
         <div class="dongProducts">
         {foreach from=$randomproducItems item=proItem name=proItem}
        
         <div class="boxsp {if ($smarty.foreach.proItem.index+1)%4 eq 0}box_last{/if}">
                <div class="bubbleInfo">
                    <div class="picsp">
                        <img class="trigger" src="{$ROOTPATH}/gallery/avatar_upload/products/avatar/{$proItem->getAvatar()}" id="download">
                        
                    </div>
                    <div class="khunghienthi">
                    {include file="$usertemplate/popup.tpl.html" title=popup}
                    </div>
                    <div class="bottomsp">
                        <ul>
                            <li class="tensp"><a href="{$proItem->getViewUrl()}">{$proItem->getName()}</a></li>
                             {if $proItem->getSPrice()}
                            <li class="vaochitiet"><a href="{$proItem->getViewUrl()}" title="{$proItem->getName()}">{$proItem->getSPrice()|number_format:0:",":"."} VNĐ</a></li>
                            {else}
                            <li class="vaochitiet"><a href="{$proItem->getViewUrl()}" title="{$proItem->getName()}">{if $proItem->getPrice() neq 0}{$proItem->getPrice()|number_format:0:",":"."} VNĐ {else}Đang cập nhật{/if}</a></li>
                            {/if}
                        </ul>
                    </div><!--bottomsp-->
                </div>
			</div>
        <!-- boxsp -->
         {if ($smarty.foreach.proItem.index+1)%4==0&&$smarty.foreach.proItem.index>0}
        		<div class="clearfix"></div>
        	</div><!--dongProducts-->
            <div class="dongProducts" {if ($smarty.foreach.proItem.index+5)>=($smarty.foreach.proItem.total)}style="border:none"{/if}>
        {/if}
        {/foreach}
        </div>
		{/if}
    </div>
  			 </div>
   		</div>
{include file="$usertemplate/footer.tpl.html" title=footer} 